<?php
if (!defined('DC_CONTEXT_ADMIN')) { return; }

$_menu['Plugins']->addItem(__('customersAuth'),'plugin.php?p=customersAuth', 'index.php?pf=customersAuth/icons/icon.png',
		preg_match('/plugin.php\?p=customersAuth(&.*)?$/',$_SERVER['REQUEST_URI']),
		$core->auth->check('admin',$core->blog->id));
		
$core->addBehavior('initWidgets',array('customersAuthWidgetBehaviors','initWidgets'));
 
//Gestion de la partie widget (customisation de l'affichage du widget)
class customersAuthWidgetBehaviors{
	
	public static function initWidgets(&$w){
		
		$w->create('customersAuth',__('Customer Auth'),array('publicCustomersAuth','customersAuthWidget'));
		$w->customersAuth->setting('title',__('Title :'),'');
		$w->customersAuth->setting('homeonly',__('Home page only'),1,'check');
	}
}

?>